{% extends "learning_logs/base.html" %}

{% load bootstrap4 %}

{% block page_header %}
  <h1>添加新条目</h1>
{% endblock page_header %}

{% block content %}

  <div class="card mb-3">
    <h4 class="card-header">
      <small><a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a></small>
      <form action="{% url 'learning_logs:new_entry' topic.id %}" method='post'>
    {% csrf_token %}
    </h4>
  </div>
    {% bootstrap_form form %}
    {% buttons %}
      <button name="submit" class="btn btn-success">添加条目</button>
    {% endbuttons %}
  </form>

{% endblock content %}